package com.maiji.cloud.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.maiji.cloud.entities.login.Recipe;
import com.maiji.cloud.request.login.RecipeFindAllReqData;
import com.maiji.cloud.response.login.RecipeResData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface RecipeMapper extends BaseMapper<Recipe> {

    RecipeResData findRecipeById (@Param("recipeId") String recipeId);

    List<RecipeResData> findAllRecipes (@Param("data") RecipeFindAllReqData data, Page page);

    List<RecipeResData> findAllRecipeByLogin (@Param("provinceRecipeIds") List<String> provinceRecipeIds, @Param("recommendRecipeIds") List<String> recommendRecipeIds, Page page);

}
